package com.adc.douyu_assistant.utils;

import com.adc.douyu_assistant.entity.DouyuMessage;
import com.adc.douyu_assistant.entity.DouyuMessageHeader;

public class MessageConstractor {
    public static DouyuMessage getMessage(String content) {
        content = content + "\0";
        Short type = 689;
        DouyuMessageHeader header = new DouyuMessageHeader(content.length(), type);
        DouyuMessage message = new DouyuMessage(header, content);
        return message;
    }
}
